package com.oocl.tm;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class GetThread implements Runnable{

	BufferedReader reader;
	
	public GetThread(InputStream is){
		System.out.println("get///////////////////");
		reader = new BufferedReader(new InputStreamReader(is));
	}
	@Override
	public void run() {
		while(true){
			String line;
			try {
				line = reader.readLine();
				System.out.println("read: "+line);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			
		}
		
	}

}
